package com.woniuxy.config;


import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.time.Duration;

/**
 * @Author hq
 * @Date 2025/7/14$ 23:06$
 * @Description TODO
 * @Params $
 * @Return $
 **/
@Configuration
public class PaymentConfig {
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplateBuilder()
                .setConnectTimeout(Duration.ofSeconds(5))
                .setReadTimeout(Duration.ofSeconds(10))
                .build();
    }


   /* @Bean
    public WechatPayService wechatPayService() {
        return new WechatPayServiceImpl();
    }*/
}